package com.wanbangee.marksystem.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.wanbangee.marksystem.entities.MSubject;
import com.wanbangee.marksystem.service.StatisticsSubReportService;

@RestController
@RequestMapping("/subject")
public class StatisticsSubReportController {
	@Autowired
	public StatisticsSubReportService statisticsSubReportService;
	@RequestMapping(value = "/getSubject", method = RequestMethod.GET)
	public Map<String, Object> selectExamInfoBySchId(Integer examId) {
		Map<String, Object> responseMap = new HashMap<String, Object>();
		List<MSubject> mSubject = this.statisticsSubReportService.selecMSubject(examId);
		responseMap.put("message", "接口成功");
		responseMap.put("code", 1001);
		responseMap.put("mSubject", mSubject);
		return responseMap;
	}

}
